class Blog < ActiveRecord::Base
  has_many :articles
  def to_param
    "#{id}-#{name}"
  end
end
